package com.zerui.manager.web.cmd;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @Author wh
 * @create_time 2023-08-25 13:49
 */
@Getter
@Setter
@ToString
public class DeviceUpdateCmd {

    @ApiModelProperty(value="设备id")
    @NotNull(message = "设备id不能为空")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long deviceId;

    @ApiModelProperty("进出方向 0：进 1：出")
    @NotNull(message = "进出方向不能为空")
    @Min(0)
    @Max(1)
    private Integer access;
}
